package com.wr.dao;

import com.alibaba.fastjson.JSONObject;
import com.wr.model.Comment;
import com.wr.model.RestResponse;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author weirong
 * @Title:
 * @Description:
 * @date 2018/6/1315:36
 */
@FeignClient(value = "comment-server")
public interface CommentDao {

    @RequestMapping("comment/add")
     RestResponse<Comment> add(@RequestBody Comment comment);

    @RequestMapping("comment/listByArtId")
    RestResponse<JSONObject> listByArtId(@RequestParam(value = "artid") Integer artid, @RequestParam(value = "pageNo") Integer pageNo);
}
